<?php

//use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Jialeo\LaravelSchemaExtend\Schema;

class CreateProductAuxiliariesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('product_auxiliaries', function (Blueprint $table) {
            $table->increments('id');
            $table->unsignedBigInteger('product_id')->default(0)->comment('产品ID')->index();
            $table->unsignedTinyInteger('height')->default(0)->comment('身高');
            $table->unsignedTinyInteger('bust')->default(0)->comment('胸围');
            $table->unsignedTinyInteger('waist')->default(0)->comment('腰围');
            $table->unsignedTinyInteger('hips')->default(0)->comment('臀围');
            $table->unsignedTinyInteger('dress')->default(0)->comment('穿着大小');
            $table->unsignedTinyInteger('shoe')->default(0)->comment('鞋子');
            $table->string('hair_colour')->default('')->comment('头发颜色');
            $table->string('eyes')->default('')->comment('眼睛颜色');
            $table->timestamps();
            $table->comment = '产品附属表';
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('product_auxiliaries');
    }
}
